using System.Collections.Generic;

namespace OracleInternal.ConnectionPool
{
	internal class ComparisonInfo : IComparer<ComparisonInfo>
	{
		public ComparisonType m_compType;

		public int m_oriStartPos;

		public int m_newStartPos;

		public int m_length;

		public int m_attrStartPos;

		public int m_attrEndPos;

		public bool m_bLastAttribute;

		public ComparisonInfo(ComparisonType compType, int oriStartPos, int newStartPos, int length, int attrStartPos, int attrEndPos, bool bLastAttribute)
		{
			m_compType = compType;
			m_oriStartPos = oriStartPos;
			m_newStartPos = newStartPos;
			m_length = length;
			m_attrStartPos = attrStartPos;
			m_attrEndPos = attrEndPos;
			m_bLastAttribute = bLastAttribute;
		}

		public int Compare(ComparisonInfo a, ComparisonInfo b)
		{
			if (a.m_oriStartPos == b.m_oriStartPos)
			{
				return 0;
			}
			if (a.m_oriStartPos < b.m_oriStartPos)
			{
				return -1;
			}
			return 1;
		}
	}
}
